package com.nmc.core.manager;

import java.util.List;

import javax.management.relation.Role;

import com.nmc.core.dao.EmployeeDAO;
import com.nmc.model.Employee;

public class EmployeeManagerImpl implements EmployeeManager {
	
	private EmployeeDAO employeeDao = null;
		
	private static final long serialVersionUID = 1L;

	/**
	 * @param trackDao the trackDao to set
	 */
	public void setEmployeeDao(EmployeeDAO employeeDao) {
		this.employeeDao = employeeDao;
	}

	/**
	 * @return the trackDao
	 */
	public EmployeeDAO getEmployeeDao() {
		return employeeDao;
	}

	
	public void createEmployee(Employee employee) {
		getEmployeeDao().createEmployee(employee);
		
	}

	public void updateEmployee(Employee employee) {
	  getEmployeeDao().updateEmployee(employee);
	}

	public List<Employee> getEmployeeList() {
		return getEmployeeDao().getEmployeeList();
	}

	public Employee getEmployeeById(String empId) {
		return employeeDao.getEmployeeById(empId);
	}
	
	
}
